package com.tablefood.domain;

import java.sql.Timestamp;

/**
 * ShopCart entity. @author MyEclipse Persistence Tools
 */

public class ShopCart implements java.io.Serializable {

	// Fields

	private Long cartid;
	private ShopProduct shopProduct;
	private ShopUser shopUser;
	private Integer productnum;
	private Double price;
	private Timestamp createTime;
	private Timestamp updateTime;
	private String cover;
	private Integer num;
	private String title;

	// Constructors

	/** default constructor */
	public ShopCart() {
		productnum = 0 ;
		price = 0.0 ;
		createTime = new Timestamp(System.currentTimeMillis()); 
		updateTime = new Timestamp(System.currentTimeMillis()); 
		cover = "无";
		num = 0 ;
		title = "无";
	}

	/** minimal constructor */
	public ShopCart(ShopProduct shopProduct, ShopUser shopUser,
			Integer productnum, Double price, Timestamp createTime,
			Timestamp updateTime, Integer num, String title) {
		this.shopProduct = shopProduct;
		this.shopUser = shopUser;
		this.productnum = productnum;
		this.price = price;
		this.createTime = createTime;
		this.updateTime = updateTime;
		this.num = num;
		this.title = title;
	}

	/** full constructor */
	public ShopCart(ShopProduct shopProduct, ShopUser shopUser,
			Integer productnum, Double price, Timestamp createTime,
			Timestamp updateTime, String cover, Integer num, String title) {
		this.shopProduct = shopProduct;
		this.shopUser = shopUser;
		this.productnum = productnum;
		this.price = price;
		this.createTime = createTime;
		this.updateTime = updateTime;
		this.cover = cover;
		this.num = num;
		this.title = title;
	}

	// Property accessors

	public Long getCartid() {
		return this.cartid;
	}

	public void setCartid(Long cartid) {
		this.cartid = cartid;
	}

	public ShopProduct getShopProduct() {
		return this.shopProduct;
	}

	public void setShopProduct(ShopProduct shopProduct) {
		this.shopProduct = shopProduct;
	}

	public ShopUser getShopUser() {
		return this.shopUser;
	}

	public void setShopUser(ShopUser shopUser) {
		this.shopUser = shopUser;
	}

	public Integer getProductnum() {
		return this.productnum;
	}

	public void setProductnum(Integer productnum) {
		this.productnum = productnum;
	}

	public Double getPrice() {
		return this.price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Timestamp getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	public Timestamp getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Timestamp updateTime) {
		this.updateTime = updateTime;
	}

	public String getCover() {
		return this.cover;
	}

	public void setCover(String cover) {
		this.cover = cover;
	}

	public Integer getNum() {
		return this.num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

}